package cn.cangfei.massage.exception.task;


import cn.cangfei.massage.service.IVisitAppointmentService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ClearRepeatAppointmentTask {

    @Resource
    private IVisitAppointmentService visitAppointmentService;

    // TODO 开启定时任务

    /**
     * 删除重复的预约  随便删除一个
     */
    public void clearRepeatAppointment() {

        visitAppointmentService.deleteRepeat();
    }

}
